<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTeamsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('teams', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('名稱');
            $table->longText('summary')->nullable()->comment('概述');
            $table->longText('detail')->nullable()->comment('詳述');
            $table->longText('environment')->nullable()->comment('環境');
            $table->json('picture')->nullable()->comment('班表');
            $table->tinyInteger('status')->default('1')->comment('狀態');
            $table->integer('sort')->default('0')->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('teams');
    }
}
